package com.learn.design.lsp.v2;

import com.learn.design.lsp.v1.Rifle;

public class Client {
    public static void main(String[] args) {
        //产生三毛这个狙击手
        Snipper sanMao = new Snipper();
        sanMao.setAugRifle((AugRifle) new Rifle());
        sanMao.killEnemy();
    }
}
